#pragma once

#include "ProxySocket.h"

class CTCPProxySocket : public CProxySocket
{
public:
	CTCPProxySocket(void);
public:
	~CTCPProxySocket(void);
public:
	bool Connect( const char * lpszServer, unsigned short uPort );
    int  ConnectProxy( const char * lpszProxy, unsigned short nPort, const char * lpszUser, const char * lpszPass, unsigned char nVer = 0x05);

protected:
    bool ConnectServer( const char * server, unsigned short port );
	bool DoV4Connect( const char * server, unsigned short port );
	bool DoV4AConnect( const char * server, unsigned short port );
	bool DoV5Connect( const char * server, unsigned short port );
	bool DoV5Login( const char * user, const char * pass );

	bool m_bAppConnected;
};
